package com.ziyan.dao;

import com.ziyan.entity.URLEntity;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by ZMy on 2017/5/24.
 */
public interface URLDao extends JpaRepository<URLEntity,Long>{

    URLEntity findByUrl(String url);

    URLEntity findByShortUrl(String url);

    URLEntity findByKeyWord(String key);
}
